<?php
namespace BP\Sys;
require_once("BP/En/Map.php");
class Contrast extends EntityMyPK {
	public function getContrastKey () 
	{
		$s = $this->GetValStringByKey(ContrastAttr::$ContrastKey);
		if ((($s . NULL) . $s->equals("")))
		{
			$s = "FK_NY";
		}
		return $s;
	}
	public function setContrastKey ($value) // [String value]
	{
		$this->SetValByKey(ContrastAttr::$ContrastKey, $value);
	}
	public function getKeyVal1 () 
	{
		return $this->GetValStringByKey(ContrastAttr::$KeyVal1);
	}
	public function setKeyVal1 ($value) // [String value]
	{
		$this->SetValByKey(ContrastAttr::$KeyVal1, $value);
	}
	public function getKeyVal2 () 
	{
		return $this->GetValStringByKey(ContrastAttr::$KeyVal2);
	}
	public function setKeyVal2 ($value) // [String value]
	{
		$this->SetValByKey(ContrastAttr::$KeyVal2, $value);
	}
	public function getSortBy () 
	{
		return $this->GetValStringByKey(ContrastAttr::$SortBy);
	}
	public function setSortBy ($value) // [String value]
	{
		$this->SetValByKey(ContrastAttr::$SortBy, $value);
	}
	public function getKeyOfNum () 
	{
		return $this->GetValStringByKey(ContrastAttr::$KeyOfNum);
	}
	public function setKeyOfNum ($value) // [String value]
	{
		$this->SetValByKey(ContrastAttr::$KeyOfNum, $value);
	}
	public function getGroupWay () 
	{
		return $this->GetValIntByKey(ContrastAttr::$GroupWay);
	}
	public function setGroupWay ($value) // [int value]
	{
		$this->SetValByKey(ContrastAttr::$GroupWay, $value);
	}
	public function getOrderWay () 
	{
		return $this->GetValStringByKey(ContrastAttr::$OrderWay);
	}
	public function setOrderWay ($value) // [String value]
	{
		$this->SetValByKey(ContrastAttr::$OrderWay, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_UserRegedit", "对比状�?�存�?");
		$map->Java_SetEnType($EnType->Sys);
		$map->Java_SetDepositaryOfEntity($Depositary->None);
		$map->AddMyPK();
		$map->AddTBString(ContrastAttr::$ContrastKey, NULL, "对比项目",  FALSE ,  TRUE , 0, 20, 10);
		$map->AddTBString(ContrastAttr::$KeyVal1, NULL, "KeyVal1",  FALSE ,  TRUE , 0, 20, 10);
		$map->AddTBString(ContrastAttr::$KeyVal2, NULL, "KeyVal2",  FALSE ,  TRUE , 0, 20, 10);
		$map->AddTBString(ContrastAttr::$SortBy, NULL, "SortBy",  FALSE ,  TRUE , 0, 20, 10);
		$map->AddTBString(ContrastAttr::$KeyOfNum, NULL, "KeyOfNum",  FALSE ,  TRUE , 0, 20, 10);
		$map->AddTBInt(ContrastAttr::$GroupWay, 1, "求什�??SumAvg",  FALSE ,  TRUE );
		$map->AddTBString(ContrastAttr::$OrderWay, "", "OrderWay",  FALSE ,  TRUE , 0, 10, 10);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	public function getGetNewEntities () 
	{
		return Contrasts::constructor__();
	}
}
?>
